package com.android.thought.badboys;

import android.app.Application;
import android.util.Log;

public class BadBoysApplication extends Application {
	
	Model mModel;
	
	@Override
	public void onCreate() {
		super.onCreate();
		Log.e("CH_DEBUG", "############### CREATE APPLICATION ");
		
		if( mModel == null ) 
			mModel = new Model(getApplicationContext());
		
	}
	
	public Model  getModel() { 
		if( mModel == null ) 
			mModel = new Model(getApplicationContext());
		
		return mModel;
	}
	
	
}
